import request from './request'
import { userInfo } from '@/model/userModel'

export const searchUserInfo = () => {
  return request({
    url: 'user',
    method: 'GET'
  })
}
export const userLogin = (data: userInfo) => {
  return request({
    url: 'user/login',
    method: 'POST',
    data
  })
}
export const userRegister = (data: userInfo) => {
  return request({
    url: 'user/register',
    method: 'POST',
    data
  })
}
